<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/weekly',
    'namespace' => 'Frieza\\Modules\\Weekly\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {

    // 列表
    $router->get('/index', 'WeeklyController@index');
    // 编辑
    $router->get('/index/{id}/edit', 'WeeklyController@edit');
    // 编辑
    $router->get('/index/{id}', 'WeeklyController@check');
    // 创建
    $router->get('/index/create', 'WeeklyController@edit');
    // 保存
    $router->post('/index/save', 'WeeklyController@saveSubmit');


});
